<template>
	<view>
		<u-empty mode="list" text="无住院记录" v-if="empty">
		</u-empty>
	</view>
</template>

<script>
	import {
		records
	} from '../../request/index.js'
	export default {
		data() {
			return {
				list: [],
				empty: false,
			}
		},
		onLoad() {
			records({
				uid: uni.getStorageSync('userid')
			}).then(res => {
				console.log(res);
				res.data.list && res.data.list.length ? () => {
					this.list = res.data.list;
				} : this.empty = true
			})

		},
		methods: {

		}
	}
</script>

<style>
</style>
